package teach.aistar.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import teach.aistar.mapper.OrderMapper;
import teach.aistar.mapper.WebOrderMapper;
import teach.aistar.model.entity.WebOrder;
import teach.aistar.service.IWebOrderService;

import java.util.List;

@Service
@Transactional
public class WebOrderServiceImpl implements IWebOrderService {
    @Autowired
    private WebOrderMapper webOrderMapper;

    @Autowired
    private OrderMapper orderMapper;
    @Override
    public List<WebOrder> selectWebOrderAll(String name) {
        return webOrderMapper.selectWebOrderAll(name);
    }

    @Override
    public int deleteById(Long id) {
        return  webOrderMapper.deleteById(id);
    }

    @Override
    public int update(String orderNo) {
        return  webOrderMapper.update(orderNo);
    }

//    @Override
//    public WebOrder findSekId(String name) {
//        return orderMapper.findSekId(name);
//    }
}
